package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import model.Contact;
import model.DeleteModel;
import model.ModifyModel;
import view.MainWindow;
import view.ModifyWindow;

/**
 * Call the view which display the modification page of a contact
 * @author Marie Morin
 *
 */
public class ModifyController implements ActionListener{
	
	private Contact c;
	private MainWindow w;
	
	public ModifyController(Contact c, MainWindow w){
		
		this.c = c;
		this.w = w;
	}

	/**
	 *  This function is called when the user click on the button modify on the page of a contact
	 */
	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub

		ModifyWindow modify = new ModifyWindow(w, c);
		
		
	}

}
